/**
 * 
 */
package com.locky.ws;

import java.util.Collection;
import java.util.ArrayList;

import javax.persistence.*;

/** 
 * @author ambroise
 */
@Entity
@PrimaryKeyJoinColumn(name="USER_ID")
@Table(name="t_user")
public class User extends Personne {

	/** 
	 * @uml.property name="autorisations"
	 * @uml.associationEnd multiplicity="(0 -1)" ordering="true" inverse="users:com.locky.ws.Autorisation"
	 */
	@ManyToMany(mappedBy="users", targetEntity = Autorisation.class)
	private ArrayList autorisations = new ArrayList<Autorisation>();

	/** 
	 * Getter of the property <tt>autorisations</tt>
	 * @return  Returns the autorisations.
	 * @uml.property  name="autorisations"
	 */
	public ArrayList getAutorisations() {
		return autorisations;
	}

	/** 
	 * Setter of the property <tt>autorisations</tt>
	 * @param autorisations  The autorisations to set.
	 * @uml.property  name="autorisations"
	 */
	public void setAutorisations(ArrayList autorisations) {
		this.autorisations = autorisations;
	}

}
